<template>
  <projectInfoUpd :docProjectId="projectId" @isShow="isShow"></projectInfoUpd>
</template>

<script>
import projectInfoUpd from '@/components/monitorProjectManagement/projectInfoUpd'
export default {
  name: 'listProjectInfoUpd',
  components: {
    projectInfoUpd,
  },
  data() {
    return {
      projectId: '',
      //   type:"",
      //   idF:""
    }
  },
  created() {
    this.projectId = this.$route.query.projectId
    this.type = this.$route.query.type
    // this.idF = this.$route.query.id;
  },
  methods: {
    isShow(func) {
      this.$router.push({
        path: '/home/project/projectIncludeDetail',
        name: 'projectIncludeDetail',
        query: {
          projectId: this.projectId,
          // type:this.type,
          // id: this.idF
        },
      })
      if (func == 'goBack') {
        this.$store.commit('GOBACK_NAME', {
          oldUrl: '/home/project/projectList',
          newUrl: this.$router.currentRoute.fullPath,
        })
      } else {
        this.$store.commit('CHANGE_SLIDER_NAME', {
          oldUrl: '/home/project/projectList',
          newUrl: this.$router.currentRoute.fullPath,
        })
      }
    },
  },
}
</script>

<style scoped></style>
